package com.example.rtmppusher.util;

public class ThreadUtils {

    public static void post(Action action) {
        new Thread(() -> {
            try {
                action.run();
            } catch (Throwable e) {
                e.printStackTrace();
            }
        }).start();
    }

    public interface Action {

        void run() throws Throwable;
    }
}
